package com.jiangyao.model.dto.backend;

import com.jiangyao.model.dto.BaseDTO;
import com.jiangyao.model.dto.ListPageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value = "修改职位状态")
public class EditJobStatusDto extends ListPageDTO implements BaseDTO {

	@ApiModelProperty(value = "职位ID",required = true)
	@NotNull(message = "职位ID集合不能为空",groups = Edit.class)
	@NotEmpty(message = "职位ID集合不能为空",groups = Edit.class)
	private List<Integer> jobIdList;

	@ApiModelProperty(value = "修改状态0为禁用，1为启用",required = true)
	@NotNull(message = "修改状态不能为空",groups = Edit.class)
	@NotEmpty(message = "修改状态能为空",groups = Edit.class)
	private String status;
}
